
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@page import="com.tss.util.*"%>
<%@page import="com.jedi.*"%>
<%@page import="com.store.*"%>
<%@page import="java.util.*"%>
<%@page import="java.text.*"%>
<%@include file="../global_var.jsp"%>
<%@include file="../check_login.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

User just_user = (User)session.getAttribute("LoginUser");
String power_enable_id1 = "10006";
String power_enable_id2 = "10106";
if (!just_user.hasPower(power_enable_id1)&&(!just_user.hasPower(power_enable_id2))) {
	out.println(strNoPowerInfo); 
	return;
}
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    
<title>My JSP 'techcontract_add.jsp' starting page</title>
    
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <link href="style/main.css" rel="stylesheet" type="text/css">
	<script language="javascript" src="js/common.js"></script>
	<script language="javascript">
   function clk_goback() {
	history.back();
}
</script>
<%
 String strErr = "";

String conid       = ParamUtils.getParameter(request,"conid","0");

PalavMgr palavMgr = new PalavMgr();
Palav palav= palavMgr.get(conid);
if (palav == null || palav.getConid()==0||conid.trim().equals("0")) strErr = "此信息不存在!";


    %>
   <script language="javascript" >
   function clk_submit() {
	var oForm = document.operatorForm;
	oForm.cmd.value = "update";
	return true;
}

</script>
</head>

<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td >
     <form name="operatorForm" method="post" onSubmit="return clk_submit();">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="100" align="center" valign="top" style="padding-top:10px;padding-bottom:10px;">
            <table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#000000">
			

               <%if (!strErr.trim().equals("")) {%>
              <tr> 
                <td height="24" colspan="7" bgcolor="#D7D7DB" style="padding-left:10px;">
                  错误提示：
                 
                  <font color=red><%=strErr%></font>                </td>
              </tr>
              <%}%>
              
              <tr> 
                <td height="24" colspan="7" bgcolor="#858585" style="padding-left:10px;">
                  <font color="#FFFFFF"><strong>损益分析信息</strong></font>  </td>
              </tr>
              
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >项目名称：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="prjname" type="text" value="<%=palav.getPrjname()%>"  class="inputbox" size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"></td>
              </tr> 
                 
              <tr> 
                <td width="21%" height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;">
                <span style="padding-left:5px;"><font color="red">*</font></span>合同编号：</td>
                <td width="79%" colspan="6" bgcolor="#EDEDF0" style="padding-left:5px;">
                  <input name="conid" type="text" value="<%=palav.getConid()%>" size="25" class="inputbox" maxlength="50" readonly="readonly" style="background-color:#EDEDE8" >
                   &nbsp;&nbsp;</td>
              </tr>
			  
               <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >核算年：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="y" type="text" value="<%=palav.getY()%>" id="y" size="25" class="inputbox" maxlength="25" readonly="readonly" style="background-color:#EDEDE8">
                   年</td>
              </tr> 
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >核算月：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="m" type="text" value="<%=palav.getM()%>" id="m" size="25" class="inputbox" maxlength="25" readonly="readonly" style="background-color:#EDEDE8">
                   月</td>
              </tr> 
                <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >厂商名称：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="comname" type="text" value="<%=palav.getComname()%>"  size="30" class="inputbox" maxlength="50" readonly="readonly" style="background-color:#EDEDE8"></td>
              </tr> 
                <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >合同类型：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="contype" type="text" value="<%=palav.getContype()%>"  size="25" class="inputbox" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"></td>
              </tr> 
               
               
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >项目经理：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="user_name" type="text" value="<%=palav.getUser_name()%>" class="inputbox" size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"></td>
              </tr> 
                <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >初次安装费：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="fifee" type="text" value="<%=FormatNum.formatNumber(palav.getFifee())%>"  size="25" class="inputbox" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >(1-3年)现场维护费：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="mfee" type="text" value="<%=FormatNum.formatNumber(palav.getMfee())%>"  size="25" class="inputbox" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
       
            
                    <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >现场维护年限：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="myear" type="text" value="<%=FormatNum.formatNumber(palav.getMyear())%>" id="myear" class="inputbox" size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> 年      </td>
              </tr> 
              <tr>
                      <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >签约金额：</td>
                      <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                      <input name="sigfee" type="text" value="<%=FormatNum.formatNumber(palav.getSigfee())%>"  size="25"  class="inputbox" maxlength="25" style="background-color:#EDEDE8" readonly="readonly">￥ </td>
                    </tr>
                    <tr>
                      <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >技术收入合计：</td>
                      <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                      <input name="income" type="text" value="<%=FormatNum.formatNumber(palav.getIncome())%>"  class="inputbox" size="25" maxlength="25" style="background-color:#EDEDE8" readonly="readonly">￥ </td>
                    </tr>
                <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >备件成本：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="spartfee" type="text" value="<%=FormatNum.formatNumber(palav.getSpartfee())%>" class="inputbox"  size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
                <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >外部人员技术成本：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="outefee" type="text" value="<%=FormatNum.formatNumber(palav.getOutefee())%>" size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
                    <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >技术成本合计：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="costs" type="text" value="<%=FormatNum.formatNumber(palav.getCosts())%>"  size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
              <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >项目预留：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="holdfee" type="text" value="<%=FormatNum.formatNumber(palav.getHoldfee())%>" " size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
              
              
              
                     <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >差旅费：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="tripfee" type="text" value="<%=FormatNum.formatNumber(palav.getTripfee())%>"  size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
                    <tr>
                   <td height="24" align="right" bgcolor="#D7D7DB" style="padding-right:5px;" >合同毛利：</td>
                   <td bgcolor="#EDEDF0" style="padding-left:5px;" colspan="6" >
                   <input name="infee" type="text" value="<%=FormatNum.formatNumber(palav.getInfee())%>"  size="25" maxlength="25" readonly="readonly" style="background-color:#EDEDE8"> ￥                   </td>
              </tr> 
            
              <tr> 
                <td bgcolor="#EDEDF0" colspan="7" align="center">
                  <input type="hidden" name="submit" value="保存" class="inputButton"> 
                  <input type="hidden" name="reset" value="重写" class="inputButton">    
                    <input type="button" onClick="clk_goback();" name="btn" value="返　回" class="inputButton">  
                  <input type="hidden" name="cmd" value="">                  </td>
              </tr>
            </table>
          </td>
        </tr>
       
      </table>
      </form>
    </td>
  </tr>
</table>


<iframe width="168" height="190" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="calendar/ipopeng.htm" scrolling="no" frameborder="0"
			style="BORDER-RIGHT:2px ridge; BORDER-TOP:2px ridge; Z-INDEX:999; LEFT:-500px; VISIBILITY:visible; BORDER-LEFT:2px ridge; BORDER-BOTTOM:2px ridge; POSITION:absolute; TOP:0px">
</iframe>
</body>
</html>
